package com.leo.blog.dto;

import java.util.List;

import com.leo.blog.entity.HeadLine;
import com.leo.blog.enums.headLineStateEnum;

public class HeadLineExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//头条数量
	private int count;
	//操作(增删改的时候使用)
	private HeadLine headLine;
	//列表(查询列表的时候使用)
	private List<HeadLine> headLineList;
					
	//构造函数
	public HeadLineExecution() {
						
	}
					
	//操作失败的时候使用的构造器
	public HeadLineExecution(headLineStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
					
	//操作成功的时候使用的构造器
	public HeadLineExecution(headLineStateEnum stateEnum, HeadLine headLine) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.headLine = headLine;
	}
					
	//操作成功的时候使用的构造器
	public HeadLineExecution(headLineStateEnum stateEnum, List<HeadLine> headLineList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.headLineList = headLineList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public HeadLine getHeadLine() {
		return headLine;
	}

	public void setHeadLine(HeadLine headLine) {
		this.headLine = headLine;
	}

	public List<HeadLine> getHeadLineList() {
		return headLineList;
	}

	public void setHeadLineList(List<HeadLine> headLineList) {
		this.headLineList = headLineList;
	}
	
	
}
